From 6fddee89c1c672edc32df58a1d1a697ba9c805f9 Mon Sep 17 00:00:00 2001 From: Michael Young Date: Tue, 1 Feb 2011 19:16:28 +0000 Subject: [PATCH] tools/hotplug: Fix proxy arp messing about to use correct device Fix an anomaly in /etc/xen/scripts/network-route. Currently this script contains netdev=${netdev:-eth${vifnum}} ie. netdev is set to eth${vifnum} by default. Unfortunately vifnum is not set anywhere in the xen code so the default is actually the broken "eth". And anyway the vif number (which is what vifnum ought to be) is not relevant. The patch changes the default to eth0 (which is what the comment at the top of the file says it should be). Signed-off-by: Michael Young Committed-by: Ian Jackson --- tools/hotplug/Linux/network-route | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/hotplug/Linux/network-route b/tools/hotplug/Linux/network-route index 0cf85b526a..8f6a1be9fc 100644 --- a/tools/hotplug/Linux/network-route +++ b/tools/hotplug/Linux/network-route @@ -22,7 +22,7 @@ dir=$(dirname "$0") evalVariables "$@" -netdev=${netdev:-eth${vifnum}} +netdev=${netdev:-eth0} echo 1 >/proc/sys/net/ipv4/ip_forward echo 1 >/proc/sys/net/ipv4/conf/${netdev}/proxy_arp -- 2.30.2